package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbClassroomMapper;
import com.ruoyi.system.domain.TbClassroom;
import com.ruoyi.system.service.ITbClassroomService;

/**
 * 【教室】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-11
 */
@Service
public class TbClassroomServiceImpl implements ITbClassroomService 
{
    @Autowired
    private TbClassroomMapper tbClassroomMapper;

    /**
     * 查询【教室】
     * 
     * @param id 【教室】主键
     * @return 【教室】
     */
    @Override
    public TbClassroom selectTbClassroomById(Long id)
    {
        return tbClassroomMapper.selectTbClassroomById(id);
    }

    /**
     * 查询【教室】列表
     * 
     * @param tbClassroom 【教室】
     * @return 【教室】
     */
    @Override
    public List<TbClassroom> selectTbClassroomList(TbClassroom tbClassroom)
    {
        return tbClassroomMapper.selectTbClassroomList(tbClassroom);
    }

    /**
     * 新增【教室】
     * 
     * @param tbClassroom 【教室】
     * @return 结果
     */
    @Override
    public int insertTbClassroom(TbClassroom tbClassroom)
    {
        return tbClassroomMapper.insertTbClassroom(tbClassroom);
    }

    /**
     * 修改【教室】
     * 
     * @param tbClassroom 【教室】
     * @return 结果
     */
    @Override
    public int updateTbClassroom(TbClassroom tbClassroom)
    {
        return tbClassroomMapper.updateTbClassroom(tbClassroom);
    }

    /**
     * 批量删除【教室】
     * 
     * @param ids 需要删除的【教室】主键
     * @return 结果
     */
    @Override
    public int deleteTbClassroomByIds(Long[] ids)
    {
        return tbClassroomMapper.deleteTbClassroomByIds(ids);
    }

    /**
     * 删除【教室】信息
     * 
     * @param id 【教室】主键
     * @return 结果
     */
    @Override
    public int deleteTbClassroomById(Long id)
    {
        return tbClassroomMapper.deleteTbClassroomById(id);
    }

    @Override
    public List listClassroomMsg() {
         return tbClassroomMapper.listClassroomMsg();
    }
}
